package model

import "time"

const SysUserTable = "sys_user"

type SysUser struct {
	Id             int       `json:"id" gorm:"primaryKey;autoIncrement;comment:id"`
	UserName       string    `json:"user_name" gorm:"column:user_name"`
	UserPassword   string    `json:"-" gorm:"column:user_password"`
	Nickname       string    `json:"nickname" gorm:"column:nickname"`
	Phone          string    `json:"phone" gorm:"column:phone"`
	RoleId         int       `json:"role_id" gorm:"column:role_id"`
	RoleName       string    `json:"role_name" gorm:"-"`
	OrgId          int       `json:"org_id" gorm:"column:org_id"`
	OrgName        string    `json:"org_name" gorm:"column:org_name"`
	Avatar         string    `json:"avatar" gorm:"column:avatar"`
	Email          string    `json:"email" gorm:"column:email"`
	Status         int       `json:"status" gorm:"column:status"`
	CreateUserName string    `json:"create_user_name" gorm:"column:create_user_name"`
	CreateTime     time.Time `json:"create_time" gorm:"column:create_time"`
	UpdateUserName string    `json:"update_user_name" gorm:"column:update_user_name"`
	UpdateTime     time.Time `json:"update_time" gorm:"column:update_time"`
}
